package housing.task3.factory;

import housing.task3.dao.HsWorktypeDao;
import housing.task3.jdbc.HsWorktypeDaoImpl;

import java.sql.Connection;

public class HsWorktypeDaoFactory {
    /**
     * Method 'create'
     *
     * @return HsWorktypeDao
     */
    public static HsWorktypeDao create() {
        return new HsWorktypeDaoImpl();
    }

    /**
     * Method 'create'
     *
     * @param conn
     * @return HsWorktypeDao
     */
    public static HsWorktypeDao create(Connection conn) {
        return new HsWorktypeDaoImpl(conn);
    }

}
